package design.pattern.factory.abstractFactory;

/**
 * @description: 抽象工厂测试
 * @author: liuzhangcheng
 **/
public class AbstractFactoryTest {
    public static void main(String[] args) {
        ICourseFactory factory = new JavaCourseFactory();
        factory.createVideo().record();
        factory.createNode().edit();

        factory = new PythonCourseFactory();
        factory.createVideo().record();
        factory.createNode().edit();
    }
}
